package com.yzy.fly.config.properties;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.nio.charset.StandardCharsets;
import java.util.List;

@Data
public class DocConfiguration implements Serializable {

    private boolean enable = true;
    private boolean costTime = true;
    private String projectName;
    private boolean withFlyCore;
    private List<String> filter;

    public void setProjectName(String projectName){
        if (StringUtils.isNotBlank(projectName)) {
            this.projectName = new String(projectName.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
        }
    }

}
